Skip to content

fix: OpenRouter output modalities for image-only models#960

Merged
rekram1-node merged 3 commits intoanomalyco:devfrom
fa-sharp:patch-1
Feb 18, 2026
Merged

fix: OpenRouter output modalities for image-only models#960
rekram1-node merged 3 commits intoanomalyco:devfrom
fa-sharp:patch-1

Conversation

@fa-sharp
Copy link
Contributor

@fa-sharp fa-sharp commented Feb 18, 2026

The following models from OpenRouter only support image output modalities, so they should not include the "text" modality in the modalities.output property. OpenRouter returns an error if a text modality is requested from these models.

This PR fixes the issue for the following OpenRouter models:

  • black-forest-labs/flux.2-flex
  • black-forest-labs/flux.2-klein-4b.toml
  • black-forest-labs/flux.2-max.toml
  • black-forest-labs/flux.2-pro.toml
  • bytedance-seed/seedream-4.5.toml

Source (see under Features > Output Modalities): https://openrouter.ai/compare/black-forest-labs/flux.2-flex/black-forest-labs/flux.2-klein-4b/bytedance-seed/seedream-4.5

@rekram1-node rekram1-node merged commit 7ee7e88 into anomalyco:dev Feb 18, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments